<form class="form-horizontal m-t" id="site_info" method="post" action="{:url('setting/add')}">
    <div class="form-group">
        <label class="col-sm-3 control-label">网站信息：</label>
        <div class="input-group col-sm-7">
            <input id="title" type="text" class="form-control" name="site_info[site_name]" value="{$site_info.site_name ?? ''}" required="" aria-required="true">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">站点域名：</label>
        <div class="input-group col-sm-7">
            <textarea id="description" class="form-control" name="site_info[site_url]" required="" aria-required="true">{$site_info.site_url ?? ''}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">版权信息：</label>
        <div class="input-group col-sm-7">
            <input id="keywords" class="form-control" name="site_info[copyright]" value="{$site_info.copyright ?? ''}">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">默认头像：</label>
        <input name="site_info[avatar]" id="avatar" type="hidden"/>
        <div class="form-inline">
            <div class="input-group col-sm-2">
                <button type="button" class="layui-btn" id="avatar1">
                    <i class="layui-icon">&#xe67c;</i>上传图片
                </button>
            </div>
            <div class="input-group col-sm-3">
                <div id="sm"></div>
            </div>
        </div>
    </div>

    <input type="hidden" name="option_name" value="site_info">

    <div class="form-group">
        <div class="col-sm-4 col-sm-offset-8">
            <!--<input type="button" value="提交" class="btn btn-primary" id="postform"/>-->
            <button class="btn btn-primary" type="submit">确认提交</button>
        </div>
    </div>
</form>

